package indi.bread_nicecat.bathappyplus;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import net.minecraft.resources.ResourceLocation;
import net.minecraftforge.fml.ModList;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.config.ModConfig;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.lang.reflect.Modifier;

/**
 * @author <a href="https://gitee.com/Bread_NiceCat">Bread_NiceCat</a>
 * @date 2022/10/1 21:35
 */
@Mod(BatHappyPlus.MOD_ID)
public class BatHappyPlus {
	public static final String MOD_ID = "bathappyplus";
	public static final Logger LOGGER = LogManager.getLogger(MOD_ID);

	public static final String VERSION = ModList.get().getModFileById(BatHappyPlus.MOD_ID).versionString();
	public static final Gson STD_GSON = new GsonBuilder()
			.disableHtmlEscaping()
			.excludeFieldsWithModifiers(Modifier.STATIC, Modifier.TRANSIENT)
			.create();

	private static final ResourceLocation TIP = new ResourceLocation("bathappyplus", "texture/gui/tip.png");

	public BatHappyPlus() {
		ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, Config.configSpec);
		Network.init();
	}
}
